su
<template> 
  <div>
    <el-table :data="tableData" style="width: 100%" border align="center">
        <el-table-column prop="projectName" label="项目名称" align="center">
        </el-table-column>
        <el-table-column prop="compnayName" label="企业名称" align="center">
        </el-table-column>
        <el-table-column prop="linkman" label="负责人" align="center" >
        </el-table-column>
        <el-table-column prop="phone" label="负责人联系方式" align="center" >
        </el-table-column>
        <el-table-column prop="createDate" label="填报时间" align="center">
        </el-table-column>
        <el-table-column label="项目状态" align="center" >
          <template slot-scope="scope">
            <div>{{projectStatusFormate("project_status-"+scope.row.status)}}</div>
          </template>
        </el-table-column>
        <el-table-column fixed="right" label="操作" width="200">
          <template slot-scope="scope">
            <el-button @click="audit(scope.row)" type="text" size="small" v-if="type=='audit'"
              >审核</el-button
            >
            <el-button type="text" size="small" @click="view(scope.row)" v-if="type=='view'"
              >查看</el-button
            >
            <el-button type="text" size="small" @click="edit(scope.row)" v-if="type=='edit'"
            >订正审核</el-button
          >
          </template>
        </el-table-column>
      </el-table>
  </div>
</template>
<script>
import utils from "@/utils/utils.js";
  export default {
    name: 'listTable',
    props: {
      tableData:{
        type:Array,
      },
      dict:{
        type:Object,
      },
      type: {
      type: String,
    },
    },
    computed: {
      
    },
    data() {
      return {
        
      };
    },
    methods: {
      audit(val) {
        this.$emit('audit', val)
      },

      edit(val) {
      this.$emit("edit", val);
    },

      view(data) {
        this.$store.dispatch("user/setCloseAliveName", 'projectQueryView')
      this.$router.push({
        path: "/project/queryView",
        query: { projectId: data.id },
      });
    },

      projectStatusFormate(data) {
      return utils.selectDictLabel(this.dict.projectStatusDict, data);
    },
    }
  }
</script>
<style scoped>
  /deep/ .el-upload {
    text-align: left;
  }
</style>


